<!DOCTYPE html>

<html lang="zh-CN">



<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

    <title>Bootstrap练习</title>

    <style type="text/css">

    .row div {

        /*border: 1px red solid;*/

    }

    </style>

    <!-- Bootstrap -->

    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->

    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->

    <!--[if lt IE 9]>


      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>


      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>


    <![endif]-->

</head>



<body>

    <div class="container">

        <h1>你好，世界！</h1>

        <div class="row">

            <div class="col-md-9">左侧的9列</div>

            <div class="col-md-3">右侧的3列</div>

        </div>

        <div class="row">

            <div class="col-md-12">

                <h1 style="text-align: center;">为所有开发者、所有应用场景而设计。</h1></div>

        </div>

        <div class="row">

            <div class="col-md-4">4列</div>

            <div class="col-md-4">4列</div>

            <div class="col-md-4">4列</div>

        </div>

        <!-- 嵌套 -->

        <div class="row">

            <div class="col-md-4">

                <div class="row">

                    <div class="col-md-6">左侧的6列</div>

                    <div class="col-md-6">右侧的6列</div>

                </div>

            </div>

            <div class="col-md-4">4列</div>

            <div class="col-md-4">4列</div>

        </div>

        <div class="row">

            <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>

        </div>

        <!-- 表格 -->

        <table class="table table-striped">

            <tr>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

            </tr>

            <tr>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

            </tr>

            <tr class="info">

                <td>dfddfdf</td>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

            </tr>

            <tr>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

                <td>dfddfdf</td>

            </tr>

        </table>

        <!-- 表单 -->

        <form>

            <div class="form-group">

                <label for="exampleInputEmail1">Email address</label>

                <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">

            </div>

            <div class="form-group">

                <label for="exampleInputPassword1">Password</label>

                <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">

            </div>

            <div class="form-group">

                <label for="exampleInputFile">File input</label>

                <input type="file" id="exampleInputFile">

                <p class="help-block">Example block-level help text here.</p>

            </div>

            <div class="checkbox">

                <label>

                    <input type="checkbox"> Check me out

                </label>

            </div>

            <button type="submit" class="btn btn-default">Submit</button>

        </form>

        <!-- 居中的表单 -->

        <div class="row">

            <div class="col-md-6 col-md-offset-3">

                <form>

                    <div class="form-group">

                        <label for="exampleInputEmail1">邮箱地址:</label>

                        <input type="email" class="form-control" id="exampleInputEmail1" placeholder="请输入您的常用邮箱">

                    </div>

                    <div class="form-group">

                        <label for="exampleInputPassword1">密码:</label>

                        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入您的注册密码">

                    </div>

                    <button type="submit" class="btn btn-default">Submit</button>

                </form>

            </div>

        </div>

        <div>

            <p>Include all compiled plugins (below),</p>

            <div class="panel panel-default">

                <div class="panel-heading">Panel heading without title</div>

                <div class="panel-body">

                    Panel content

                </div>

                <div class="panel-footer">Panel footer</div>

            </div>

        </div>

    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>

    <!-- Include all compiled plugins (below), or include individual files as needed -->

    <script src="bootstrap/js/bootstrap.min.js"></script>

</body>



</html>

